package com.intellagric.agriecom.module.agriecom_news;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.agriecom.agriecom_news.NewsVo;
import com.intellagric.pojo.AgriecomNews;

import java.util.List;

public interface NewsService {

     AgriecomNews selectNewsById(String id);

     ResponseMessage insertNews(AgriecomNews news);

     ResponseMessage deleteNews(String id);

     ResponseMessage editNews(AgriecomNews news);

     LayuiDataGridResult getList(int page, int rows);

     List<AgriecomNews> getAll();

     LayuiDataGridResult getListByType(String newsTypeId, int page, int limit);

     LayuiDataGridResult getHotListByVo(int page, int rows, NewsVo vo);

     List<AgriecomNews> getLatestNews(int page,int limit);


     LayuiDataGridResult getNewsListByKeyword(int page,int limit,String keyword);

}
